﻿using System;

namespace WillsLLC.DbGen.Text.Inflection
{
    internal struct SingularPluralSuffixPair
    {
        public SingularPluralSuffixPair(String pattern, String singularSuffix, String pluralSuffix)
        {
            _pattern = pattern;
            _pluralSuffix = pluralSuffix;
            _singularSuffix = singularSuffix;
        }

        public SingularPluralSuffixPair(String pattern, String pluralSuffix)
        {
            _pattern = pattern;
            _pluralSuffix = pluralSuffix;
            _singularSuffix = null;
        }

        private String _singularSuffix;
        public String SingularSuffix { get { return this._singularSuffix ?? this._pattern; } }

        private String _pluralSuffix;
        public String PluralSuffix { get { return this._pluralSuffix; } }

        private String _pattern;
        public String Pattern { get { return this._pattern; } }
    }
}